/**
 * 
 */
package com.yidu.drug.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yidu.drug.dao.DrugModelMapper;
import com.yidu.drug.dao.FdSellDetailModelMapper;
import com.yidu.drug.dao.SalesReturnModelMapper;
import com.yidu.drug.model.DrugModel;
import com.yidu.drug.model.FdSellDetailModel;
import com.yidu.drug.model.FdSellModel;
import com.yidu.drug.model.SalesReturnModel;
import com.yidu.drug.service.SalesReturnService;

/**实现退货单的接口
 * @author meilina
 * 2018年8月9日上午11:35:22
 * @version 1.0
 */
@Service
public class SalesReturnServiceImpl implements SalesReturnService {
	
	/**
	 * 退货单的dao接口
	 */
	@Resource
	SalesReturnModelMapper salesReturnDao;
	
	@Resource
	DrugModelMapper drugDao;
	
	@Resource
	FdSellDetailModelMapper fdSellDetailDao;
	
	@Override
	public int deleteByPrimaryKey(String reId) {
		
		return salesReturnDao.deleteByPrimaryKey(reId);
	}

	@Override
	public int insert(SalesReturnModel record) {
		
		return salesReturnDao.insert(record);
	}

	@Override
	public int save(SalesReturnModel salesReturn) {
		
		return salesReturnDao.save(salesReturn);
	}

	@Override
	public SalesReturnModel selectByPrimaryKey(String reId) {
		
		return salesReturnDao.selectByPrimaryKey(reId);
	}

	@Override
	public int updateByPrimaryKeySelective(SalesReturnModel record) {
		
		return salesReturnDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(SalesReturnModel record) {
		
		return salesReturnDao.updateByPrimaryKey(record);
	}

	

	@Override
	public SalesReturnModel findById(String reId) {
		// TODO Auto-generated method stub
		return salesReturnDao.selectByPrimaryKey(reId);
	}

	@Override
	public int updateIsva(String reId) {
		// TODO Auto-generated method stub
		return salesReturnDao.updateIsva(reId);
	}

	@Override
	public int findTotalRows(SalesReturnModel salesReturn) {
		// TODO Auto-generated method stub
		return salesReturnDao.findTotalRows(salesReturn);
	}

	@Override
	public List<SalesReturnModel> findAllPage(Map<String, String> paramMap) {
		// TODO Auto-generated method stub
		return salesReturnDao.findAllPage(paramMap);
	}

	@Override
	public List<DrugModel> findAllDrug(DrugModel drugModel) {
		// TODO Auto-generated method stub
		return drugDao.findAllDrug(drugModel);
	}

	@Override
	public List<SalesReturnModel> findDrugName(String drugName, String mxQuantity, String sellDate) {
		// TODO Auto-generated method stub
		return salesReturnDao.findDrugName(drugName, mxQuantity, sellDate);
	}

	@Override
	public List<FdSellDetailModel> findAllFdSellDetail(Map<String,String> paramMap) {
		// TODO Auto-generated method stub
		return fdSellDetailDao.findAllFdSellDetail(paramMap);
	}

	@Override
	public int findCount(FdSellDetailModel fdSellDetail) {
		// TODO Auto-generated method stub
		return fdSellDetailDao.findCount(fdSellDetail);
	}

	

	



	

	
}
